window.onload = function  () {
	images = document.getElementsByClassName("photo");
	skip_list = document.getElementsByClassName("skip_list");
	banner = document.getElementById("banner");

	num=0;
	function run () {
		for (var i = 0; i <images.length; i++) {
			images[i].style.display= "none";
			skip_list[i].style.backgroundColor= "#666666";
		};
			images[num].style.display= "block";
			skip_list[num].style.backgroundColor= "white";

		if (num==images.length-1) {
			num=0;
		}
		else{
			num++;
		}
	}

	time = setInterval(run,1000);
		banner.onmouseover = function  () {
			clearInterval(time);
	}
		banner.onmouseout = function  () {
			time = setInterval(run,1000);
	}
		skip_list.onclick = function  () {
			
		}
}